﻿<%@ WebHandler Language="C#" Class="imgerr" %>

using System;
using System.Web;
using YuuzleComic.DBUtility;
using System.Data.SqlClient;
using System.Data;
using System.Globalization;

public class imgerr : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        SqlParameter[] parameters = new SqlParameter[]{ 
            new SqlParameter("@cid",context.Request["bid"]),
            new SqlParameter("@zjid",context.Request["cid"]),
            new SqlParameter("@cname",context.Request["bname"]),
            new SqlParameter("@zjname",context.Request["cname"]),
            new SqlParameter("@p",context.Request["p"]),
            new SqlParameter("@url",context.Request["url"]),
            new SqlParameter("@svr",context.Request["svr"]),
            new SqlParameter("@img",context.Request["img"])
        };
        DbHelperSQL.ExecuteSql("insert into imgerr values(@cid,@zjid,@cname,@zjname,@p,@url,@svr,@img,getDate())", parameters);
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}